Investment in Russia’s railways is to be slashed by nearly a third, complicating trade with China, state media reported.